/**
* ...
* @author Default
* @version 0.1
*/

package org.anivision.forms {
	import org.anivision.document.Document;
	import org.aswing.BorderLayout;
	import org.aswing.JPanel;

	public class DocView extends JPanel {
		
		private var _doc:Document;
		
		public function DocView(doc:Document) {
			_doc = doc;			
			setName(_doc.viewPrefix + _doc.fileName);
		}
		
		public function init():void {
			this.setLayout(new BorderLayout());
			this.append(_doc.componentView);
			_doc.componentView.init();
		}
		
	}
	
}
